package club.haomoon.core.entity.log;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Schema(title = "账户变动实体")
public class UserAccountLogData implements Serializable {
    @TableId(value="id", type= IdType.AUTO)
   @Schema(title = "主键")
    private Integer id;

   @Schema(title = "流水号")
    private String sn;

   @Schema(title = "用户ID")
    private Integer userId;

   @Schema(title = "变动对象")
    private Integer changeObject;

   @Schema(title = "关联单号")
    private String sourceSn;

   @Schema(title = "变动类型")
    private Integer changeType;

   @Schema(title = "变动数量")
    private BigDecimal changeAmount;

   @Schema(title = "变动后数量")
    private BigDecimal leftAmount;

   @Schema(title = "变动类型: [1=增加, 2=减少]")
    private Integer action;

   @Schema(title = "备注信息")
    private String remark;

   @Schema(title = "预留字段")
    private String extra;

   @Schema(title = "创建时间")
    private Long createTime;

   @Schema(title = "更新时间")
    private Long updateTime;

   @Schema(title = "删除时间")
    private Long deleteTime;
}
